package org.ru.mse10.cvis.entity.cv;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.ru.mse10.cvis.entity.misc.Identity;

/**
 * The Class Position.
 */
@Entity
@Table(name = "position")
public class Position extends Identity {

	/** The title. */
	private String title;

	/** The role. */
	private String role;

	/** The current. */
	private Boolean current;

	/** The cv data. */
	private CvData cvData;

	/**
	 * Gets the title.
	 * 
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * Sets the title.
	 * 
	 * @param title
	 *            the new title
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * Gets the role.
	 * 
	 * @return the role
	 */
	public String getRole() {
		return role;
	}

	/**
	 * Sets the role.
	 * 
	 * @param role
	 *            the new role
	 */
	public void setRole(String role) {
		this.role = role;
	}

	/**
	 * Gets the current.
	 * 
	 * @return the current
	 */
	public Boolean getCurrent() {
		return current;
	}

	/**
	 * Sets the current.
	 * 
	 * @param current
	 *            the new current
	 */
	public void setCurrent(Boolean current) {
		this.current = current;
	}

	/**
	 * Gets the cv data.
	 * 
	 * @return the cv data
	 */
	@ManyToOne
	public CvData getCvData() {
		return cvData;
	}

	/**
	 * Sets the cv data.
	 * 
	 * @param cvData
	 *            the new cv data
	 */
	public void setCvData(CvData cvData) {
		this.cvData = cvData;
	}

}
